package com.wgts.wgts.control.dialog;

import android.os.Parcel;
import android.os.Parcelable;

import java.util.ArrayList;
import java.util.List;

/*
 *
 *
 *   data:2018/9/269:16
 *
 */public class CancelListDate implements Parcelable{
    private String title;
    private List<String> list;

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public List<String> getList() {
        return list;
    }

    public void setList(List<String> list) {
        this.list = list;
    }

    protected CancelListDate(Parcel in) {
        list = in.createStringArrayList();
    }

    public static final Creator<CancelListDate> CREATOR = new Creator<CancelListDate>() {
        @Override
        public CancelListDate createFromParcel(Parcel in) {
            return new CancelListDate(in);
        }

        @Override
        public CancelListDate[] newArray(int size) {
            return new CancelListDate[size];
        }
    };

    public CancelListDate() {
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeStringList(list);
    }
}
